package com.baichen.code;

public class Demo {
    public static void main(String[] args) {
        System.out.println(1);
        System.out.println(max(4, 3));
        int result = fibonacci(10);
        System.out.println(result);
    }

    public static int max(int a, int b) {
        if (a > b) {
            return a;
        }
        return b;
    }

    public static int fibonacci(int n) {
        if (n <= 1) {
            return n;
        }
        return fibonacci(n - 1) + fibonacci(n - 2);
    }
}
